package com.geektime.hello;

import cn.hutool.core.convert.Convert;

/**
 * @Author: DRevelation
 * @Date: 2020/12/25 11:18
 */
public class StringDemo2 {
    public static void main(String[] args) {
        String url = "http://ahtv-obs.obs.cn-north-4.myhuaweicloud.com:80/16088751380406868.jpeg";
        url = url.replace(":80", "");
        System.out.println(url);

        String strs = "http://dbxz1.ahtv.cn/butelvod/32524c27-6293-4151-93b4-be8aab482103.jpeg?cmd=imageprocess/format/jpg/processtype/2/width/720/quality/80";
        strs = strs.substring(0, strs.indexOf("?"));
        String[] strArr = Convert.toStrArray(strs);
        for (String str : strArr) {
            strs = strs.replace("a", "z");
        }
        System.out.println("strs = " + strs);
    }
}
